<div class="container">
<h1>Popis članova</h1>

<table class="admin">
  <tr>
    <th class="admin narrow"></th>
    <th class="admin">Ime</th>
    <th class="admin">Prezime</th>
    <th class="admin">Grad</th>
    <th class="admin">Datum rođenja</th>
    <th class="admin">Tip članstva</th>
  </tr>

<% @members.each do |member| %>
   <tr>
    <td class="admin narrow"><%= link_to image_tag('black_icons/user.png', :class => "button"), member%></td>
    <td class="admin"><%= member.name %></td>
    <td class="admin"><%= member.surname%></td>
    <td class="admin"><%= member.city %></td>
    <td class="admin"><%= member.age %></td>
    <td class="admin"><%= member.membership.name %></td>
  </tr>
<% end %>

</table>

</div>
